//
//  userModel.m
//  uniform
//
//  Created by Apple on 15/8/26.
//  Copyright (c) 2015年 giuseppe. All rights reserved.
//

#import "userModel.h"

@implementation userModel



static userModel *_order;

+(userModel *)order
{
    @synchronized ([userModel class])
    {
        if (_order == nil)
        {
            _order = [[userModel alloc] init];
        }
    }
    return _order;
}



+ (instancetype) initWithDicAttributes:(NSDictionary *)dic {
    
    
    userModel *tmp = [[userModel alloc] init];
    
    
    if (dic) {
        
        tmp.studentName = [dic objectForKey:@"studentName"];
        tmp.studentSchool = [dic objectForKey:@"studentSchool"];
        tmp.studentNumber = [dic objectForKey:@"studentNumber"];
        tmp.userIdentityNumber = [dic objectForKey:@"userIdentityNumber"];
        
    }
    
    
    return tmp;
    
}


@end
